package com.titan.core.utils.object;

/**
 * @author 周成功
 * @email 86898837@qq.com
 * @date 2020年02月20日
 */
public class PropertyDescriptor {
    private String nameProperty;
    private String descProperty;
    private Object valueProperty;
    private Class classProperty;
    
    public PropertyDescriptor(Class clazz, String name, String desc, Object value) {
        this.classProperty = clazz;
        this.nameProperty = name;
        this.descProperty = desc;
        this.valueProperty = value;
    }
    
    public String toString() {
        StringBuffer buf = new StringBuffer(128);
        buf.append("name=").append(nameProperty).append(";");
        buf.append("desc=").append(descProperty).append(";");
        buf.append("value=").append(valueProperty).append(";");
        buf.append("clazz=").append(classProperty).append(".");
        return buf.toString();
    }

    public String getNameProperty() {
        return nameProperty;
    }

    public String getDescProperty() {
        return descProperty;
    }

    public Object getValueProperty() {
        return valueProperty;
    }

    public Class getClassProperty() {
        return classProperty;
    }
}
